package com.kk.model.result;

import java.io.Serializable;

/**
 * the class of springboot-prototype-global-exception
 *
 * <p>
 * .
 *
 * @author little_lunatic
 * @date 2023-02-08
 */
public interface Result<T> extends Serializable {
    String getCode();
    void setCode(String code);
    String getMsg();
    void setMsg(String msg);
    T getData();
    void setData(T data);
    default String toJsonStr() {
        throw new UnsupportedOperationException();
    }
}
